<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!doctype html>
<html lang="en">
<head>
	<title>后台登录系统</title>
	<jsp:include page="header.jsp"></jsp:include>
</head>
<body>
    <!-- 顶部开始 -->
    <div class="container">
        <div class="logo"><a href="./index.html">后台管理</a></div>
        <div class="left_open">
            <i title="展开左侧栏" class="iconfont">&#xe699;</i>
        </div>
        <ul class="layui-nav right" lay-filter="">
          <li class="layui-nav-item">
            <a href="javascript:;">${user.username}</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
              <dd><a href="/admin/rePass">修改密码</a></dd>
              <dd><a href="/loginout">退出</a></dd>
            </dl>
          </li>
          <!-- <li class="layui-nav-item to-index"><a href="/">前台首页</a></li> -->
        </ul>
        
    </div>
    <!-- 顶部结束 -->
    <!-- 中部开始 -->
     <!-- 左侧菜单开始 -->
    <div class="left-nav">
      <div id="side-nav">
      <%-- <c:if test="${not empty pList}"> --%>
        <ul id="nav">
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe723;</i>
                    <cite>内容管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                <c:forEach var="bb" items="${pList}" varStatus="st">
                <c:if test="${bb.quanFather==1}">
                    <li>
                        <a _href="${bb.quanUrl}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>${bb.quanName}</cite>
                            
                        </a>
                    </li >
                    </c:if>
                    </c:forEach>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe726;</i>
                    <cite>人员管理</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                   <c:forEach var="bb" items="${pList}" varStatus="st">
                <c:if test="${bb.quanFather==2}">
                    <li>
                        <a _href="${bb.quanUrl}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>${bb.quanName}</cite>
                            
                        </a>
                    </li >
                    </c:if>
                    </c:forEach>
                </ul>
            </li>
            <li>
                <a href="javascript:;">
                    <i class="iconfont">&#xe6ce;</i>
                    <cite>系统统计</cite>
                    <i class="iconfont nav_right">&#xe697;</i>
                </a>
                <ul class="sub-menu">
                    <c:forEach var="bb" items="${pList}" varStatus="st">
                	<c:if test="${bb.quanFather==3}">
                    <li>
                        <a _href="${bb.quanUrl}">
                            <i class="iconfont">&#xe6a7;</i>
                            <cite>${bb.quanName}</cite>
                            
                        </a>
                    </li >
                    </c:if>
                    </c:forEach>
        </ul>
      </div>
    </div>
    <!-- <div class="x-slide_left"></div> -->
    <!-- 左侧菜单结束 -->
    <!-- 右侧主体开始 -->
    <div class="page-content">
        <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
          <ul class="layui-tab-title">
            <li>首页</li>
          </ul>
          <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src='/admin/welcome' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
          </div>
        </div>
    </div>
    <div class="page-content-bg"></div>
    <!-- 右侧主体结束 -->
    <!-- 中部结束 -->
    <!-- 底部开始 -->
    <div class="footer">
        <div class="copyright">Copyright ©2018 </div>  
    </div>
    <!-- 底部结束 -->
</body>
</html>